* Clean up
clear all

/* Set working directory: please set your own
cd "~/Dropbox/JOP third submission/JOP replication/"
*/

* Open dataset

use 01_data/cis_data.dta, clear

* Fake model to start the data
regr pp_dummy CCAA
regsave CCAA using 01_data/survey_data.dta, ci level(95) replace addlabel ///
(Removed, fake, Model, fake,  FE, fake)

* Actual analyses
regr cabine_use pp_dummy i.income age age_sq i.education i.TAMUNI i.CCAA, r
est store pp_fe_controls
regsave pp_dummy using 01_data/survey_data.dta, ci level(95) append addlabel ///
(Removed, Female, Model, cabine_use, FE, With region fixed effects)

regr cabine_use pp_dummy female age age_sq i.education i.TAMUNI  i.CCAA, r
est store pp_fe_controls
regsave pp_dummy using 01_data/survey_data.dta, ci level(95) append addlabel ///
(Removed, Income, Model, cabine_use, FE, With region fixed effects)

regr cabine_use pp_dummy female i.income i.education i.TAMUNI i.CCAA, r
est store pp_fe_controls
regsave pp_dummy using 01_data/survey_data.dta, ci level(95) append addlabel ///
(Removed, Age and age squared, Model, cabine_use, FE, With region fixed effects)

regr cabine_use pp_dummy female i.income age age_sq i.TAMUNI i.CCAA, r
est store pp_fe_controls
regsave pp_dummy using 01_data/survey_data.dta, ci level(95) append addlabel ///
(Removed, Education, Model, cabine_use, FE, With region fixed effects)

regr cabine_use pp_dummy female i.income age age_sq i.education i.CCAA, r
est store pp_fe_controls
regsave pp_dummy using 01_data/survey_data.dta, ci level(95) append addlabel ///
(Removed, Mun Size, Model, cabine_use, FE, With region fixed effects)

regr cabine_use pp_dummy i.income age age_sq  i.education i.TAMUNI, r
est store pp_fe_controls
regsave pp_dummy using 01_data/survey_data.dta, ci level(95) append addlabel ///
(Removed, Female, Model, cabine_use, FE, Without region fixed effects)

regr cabine_use pp_dummy female age age_sq  i.education i.TAMUNI, r
est store pp_fe_controls
regsave pp_dummy using 01_data/survey_data.dta, ci level(95) append addlabel ///
(Removed, Income, Model, cabine_use, FE, Without region fixed effects)

regr cabine_use pp_dummy female i.income  i.education i.TAMUNI, r
est store pp_fe_controls
regsave pp_dummy using 01_data/survey_data.dta, ci level(95) append addlabel ///
(Removed, Age and age squared, Model, cabine_use, FE, Without region fixed effects)

regr cabine_use pp_dummy female i.income age age_sq i.TAMUNI, r
est store pp_fe_controls
regsave pp_dummy using 01_data/survey_data.dta, ci level(95) append addlabel ///
(Removed, Education, Model, cabine_use, FE, Without region fixed effects)

regr cabine_use pp_dummy female i.income age age_sq i.education, r
est store pp_fe_controls
regsave pp_dummy using 01_data/survey_data.dta, ci level(95) append addlabel ///
(Removed, Mun Size, Model, cabine_use, FE, Without region fixed effects)
